/*package com.musen.enjoyment.event;

import com.musen.enjoyment.entity.ClientAppConfig;
import com.musen.enjoyment.service.push.ClientAppConfigService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.ApplicationListener;
import org.springframework.context.event.ContextRefreshedEvent;
import org.springframework.stereotype.Component;

import java.util.List;

@Component
public class ApplicationStartedEventListener implements ApplicationListener<ContextRefreshedEvent> {
    //private volatile static AtomicBoolean isInit = new AtomicBoolean(false);

    @Autowired
    private ClientAppConfigService clientConfigService;

    @Override
    public void onApplicationEvent(ContextRefreshedEvent applicationStartedEvent) {
        List<ClientAppConfig> configs = clientConfigService.selectAll();
        clientConfigService.cacheClientConfig(configs);
    }
}*/

